import request from '@/utils/request'

// 查询WS群发任务列表
export function listChatWsMassTaks(query) {
  return request({
    url: '/business/chatWsMassTaks/list',
    method: 'get',
    params: query
  })
}

// 查询WS群发任务详细
export function getChatWsMassTaks(id) {
  return request({
    url: '/business/chatWsMassTaks/' + id,
    method: 'get'
  })
}

// 新增WS群发任务
export function addChatWsMassTaks(data) {
  return request({
    url: '/business/chatWsMassTaks',
    method: 'post',
    data: data
  })
}

// 修改WS群发任务
export function updateChatWsMassTaks(data) {
  return request({
    url: '/business/chatWsMassTaks',
    method: 'put',
    data: data
  })
}

// 删除WS群发任务
export function delChatWsMassTaks(id) {
  return request({
    url: '/business/chatWsMassTaks/' + id,
    method: 'delete'
  })
}
